<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>快聚FUN - 让聚会更容易</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><!-- -->
	<link rel="stylesheet" type="text/css" href="style/css/layout.css">
	<link rel="stylesheet" href="js/jquery-ui/css/jquery-ui.css" />
	<link rel="stylesheet" type="text/css" href="style/css/myinfo.css">
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/jquery-ui/jquery-ui-full.js"></script>
    <script>
    $(function() {
        $( "#tabs" ).tabs({
			collapsible: true
		});		
    });
    </script>
</head>
<body>
<div class="container_all">
	<div class="header">
		<div class="container_12">
			<div class="grid_11 ">
				<img id="logo1" src="style/images/logo.gif" />
				<img id="logo2" src="style/images/logo_02.gif" />
			</div>
			<div class="grid_1">
				<a id="clearCookie">退出</a>
			</div>
		</div>
	</div>
	<div class="content">
		<div class="container_12">
			<div class="grid_4">
				<h3>我的聚会：</h3>
			</div>
			<div class="prefix_6 grid_2" style="
				padding-top: 20px;
			">
				<a class="button green" href="launch_party.php" style="
					font-size: 16px;
				">发起聚会</a>
			</div>
		</div>
		<!-- 3个tabs 切换 -->
		<div class="container_12" id="tabbox">
			<!--<div class="tabhost">-->
				<ul class="tabmenu">
					<li>我发起的聚会</li>
					<li>我受邀的聚会</li>
					<li>往期的聚会</li>
				</ul>
			<div class="tabcontent">
				<div class="container_12 tab" id="tabs-1">
				<?php foreach($information as $key=>$value){?>
					<div class="grid_12 party_item">
						<div class="grid_12 alpha omega party_summary">
							<div class="grid_10 alpha">
								<h4><?echo $value['theme'];?></h4>
								<img src="style/images/MapDrop.png"/>
								<p><?echo $value['place'];?></p>
							</div>
							<?if($value['state']==0 && $value['noteDate']==$nowDate){?>
								<a class="grid_2 alpha omega party_status theme_orange" href="decide.php?gatherId=<?echo $value['url'];?>">
								<?echo "统计完毕请确认";?>
							<?}else if($value['state']==0 && strtotime($value['noteDate'])>strtotime($nowDate)){?>
								<a class="grid_2 alpha omega party_status theme_orange">
								<?echo "统计中";?>
							<?}else if($value['state']==0 && strtotime($value['noteDate'])<strtotime($nowDate)){?>
								<a class="grid_2 alpha omega party_status theme_orange">
								<?echo "已过期";?>
							<?}else if($value['state']==1){?>
								<a class="grid_2 alpha omega party_status theme_orange">
								<?echo "已确认";}?>
							</a>
						</div>
						<div class="grid_12 omega party_detail">
							<p class="p1">回复 <?echo $value['goNum'];?> 人，拒绝 <?echo $value['noNum'];?> 人， 未回复 <?echo $value['noAnswerNum'];?> 人</p>
							<p>发起时间： <?echo $value['createDate'];?>，统计截止时间： <?echo $value['noteDate']?></p>
							<p><?echo $value['content'];?></p>
						</div>
					</div>
				<?php }?>
				</div>
				<div class="container_12 tab" id="tabs-2">
					<?foreach($attendInfor as $key=>$value){?>
					<div class="grid_12 party_item">
						<div class="grid_12 alpha omega party_summary">
							<div class="grid_10 alpha">
								<h4><?echo $value['theme'];?></h4>
								<img src="style/images/MapDrop.png"/>
								<p><?echo $value['place'];?></p>
								<p>发起人: <?echo $value['name'];?></p>
							</div>
							<?if($value['state']==0){?>
								<a class="grid_2 alpha omega party_status theme_orange" href="invitation.php?gather=<?echo $value['url'];?>">尚未回复</a>
							<?}else if($value['state']==1){?>
								<a class="grid_2 alpha omega party_status theme_green" href="invitation.php?gather=<?echo $value['url'];?>">已回复</a>
							<?}else if($value['state']==2){?>
								<a class="grid_2 alpha omega party_status theme_gray" href="invitation.php?gather=<?echo $value['url'];?>">已拒绝</a>
							<?}?>
						</div>
						<div class="grid_12 omega party_detail">
							<p class="p1">回复 <?echo $value['goNum'];?> 人，拒绝 <?echo $value['noNum'];?> 人， 未回复 <?echo $value['noAnswerNum'];?> 人</p>
							<p>发起时间： <?echo $value['createDate'];?>，统计截止时间： <?echo $value['noteDate'];?></p>
							<p><?echo $value['content'];?></p>
						</div>
					</div>
					<?}?>
				</div>
				<div class="container_12 tab" id="tabs-3">
					<?foreach($preInfor as $key=>$value){?>
					<div class="grid_12 party_item">
						<div class="grid_12 alpha omega party_summary">
							<div class="grid_10 alpha">
								<h4><?echo $value['theme'];?></h4>
								<img src="style/images/MapDrop.png"/>
								<p><?echo $value['place'];?></p>
							</div>
							<a class="grid_2 alpha omega party_status theme_blue">重新发起</a>
						</div>
						<div class="grid_12 omega party_detail">
							<p class="p1">回复 <?echo $value['goNum'];?> 人，拒绝 <?echo $value['noNum'];?> 人， 未回复 <?echo $value['noAnswerNum'];?> 人</p>
							<p>发起时间： <?echo $value['createDate'];?>，统计截止时间： <?echo $value['noteDate'];?></p>
							<p><?echo $value['content'];?></p>
						</div>
					</div>
					<?}?>
				</div>
			</div>
		</div>
	</div>
	<div class="footer">
		<div class="container_12">
			<div class="grid_12">
				<div class="grid_6 prefix_3 suffix_3">
					&copy;2012 快聚FUN&nbsp;&nbsp;&nbsp;&nbsp;
					联系我们：<a href="#">easygathering@gmail.com</a>
				</div>
			</div>
		</div>
	</div>
</div>
	<script type="text/javascript" src="js/myinfo.js"></script>
</body>